//
//  DateTime.h
//  SimulacraDB
//
//  Created by Andre Cohen on 8/30/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface DateTime : NSObject {
	int year, mSecond, zone;
	char month, day, hour, minute, second;
	bool isAC;
}
@property int year, mSecond, zone;
@property char month, day, hour, minute, second;
@property bool isAC;

+ (id)createFromNSDate:(NSDate *)date;
+ (id)createFromString:(NSString *)date;

- (id)initFromString:(NSString *)dateTime;

- (double)dateStamp;
- (double)timeStamp;

- (void)setDateFromStamp:(double)date;
- (void)setTimeFromStamp:(double)time;

- (void)setDateFromString:(NSString *)date;
- (void)setTimeFromString:(NSString *)time;
- (void)setTimeZoneFromString:(NSString *)timeZone;
- (void)setEraFromString:(NSString *)era;

- (NSComparisonResult)compare:(NSObject *)object;
- (NSString *)dateDescription;
- (NSString *)timeDescription;
- (NSString *)zoneDescription;
- (NSString *)eraDescription;
@end
